package com.zdd.ehe.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdd.ehe.entity.ProvinceProduceData;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdd.ehe.entity.Role;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-24
 */
public interface IProvinceProduceDataService extends IService<ProvinceProduceData> {

    /**
     * 分页查询各省份作物产量数据列表
     * @param page
     * @return
     */
    Page<ProvinceProduceData> getAllProvinceProduceByPage(Page<ProvinceProduceData> page);


    /**
     * 查询各种类各省份的产量数据
     * @param type
     * @return
     */
   List<ProvinceProduceData> getProvinceProduceByType(String type);


   int addProvinceProduceData(ProvinceProduceData provinceProduceData);

    int updateProvinceProduceDataById(ProvinceProduceData provinceProduceData);

}
